//低版本浏览器兼容
import 'core-js/stable';
import 'regenerator-runtime/runtime';
//antd5版本低版本样式兼容
import { StyleProvider, legacyLogicalPropertiesTransformer } from '@ant-design/cssinjs';
//antd-mobile 确保在 iOS 9 下组件样式也不会乱掉
// import "antd-mobile/bundle/css-vars-patch.css";

import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import App from './App.tsx';
import './index.css';
import ReactDOM from 'react-dom';

createRoot(document.getElementById('root')!).render(
	<StrictMode>
		<StyleProvider hashPriority='high' transformers={[legacyLogicalPropertiesTransformer]}>
			<App />
		</StyleProvider>
	</StrictMode>
);

// const root = ReactDOM.createRoot(
//   document.getElementById("root") as HTMLElement
// );
// root.render(<App />);
